package cz.data.domain.metadata.rpc;

import cz.data.common.annotation.DataInner;
import cz.data.domain.metadata.model.entity.MetadataColumnEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "metadataColumnFeign", value = "metadata-domain-api")
public interface MetadataColumnFeign {

    @DataInner
    @GetMapping("/inner/columns/table/{id}")
    List<MetadataColumnEntity> innerMetadataColumnByTableId(@PathVariable("id") String id);

    @GetMapping("/columns/table/{id}")
    List<MetadataColumnEntity> getMetadataColumnByTableId(@PathVariable("id") String id);
}
